package com.github.thinwonton.seckill.entity.web;

import java.util.Date;

/**
 * 秒杀接口暴露
 * 
 * @author hugo
 *
 */
public class Exposer {
	/**
	 * 是否已经暴露接口
	 */
	private boolean exposed;
	/**
	 * 秘钥
	 */
	private String secretKey;

	private long seckillId;

	private Date startTime;

	private Date endTime;

	private Date timeNow;

	public Exposer(long seckillId, boolean exposed, String secretKey, Date startTime, Date endTime, Date timeNow) {
		this.exposed = exposed;
		this.secretKey = secretKey;
		this.seckillId = seckillId;
		this.startTime = startTime;
		this.endTime = endTime;
		this.timeNow = timeNow;
	}

	public long getSeckillId() {
		return seckillId;
	}

	public void setSeckillId(long seckillId) {
		this.seckillId = seckillId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getTimeNow() {
		return timeNow;
	}

	public void setTimeNow(Date timeNow) {
		this.timeNow = timeNow;
	}

	public boolean isExposed() {
		return exposed;
	}

	public void setExposed(boolean exposed) {
		this.exposed = exposed;
	}

	public String getSecretKey() {
		return secretKey;
	}

	public void setSecretKey(String secretKey) {
		this.secretKey = secretKey;
	}

}
